﻿@model IEnumerable<Modelo.CheckPointEntrega>

@{
    ViewBag.Title = "Check Point Entrega";
}

<h2>Cadastro de Check Point de Entrega</h2>



@{


  Html.Telerik().Grid(Model)

            .Name("CkeckPontEntrega")
            .ToolBar(commands => commands.Insert())
            .DataKeys(dataKeys => dataKeys.Add(model => model.Id))
            .DataBinding(dataBinding => dataBinding
                /*Server binding
                    .Server()
                //Home.Update updates an existing data record*/
                .Ajax()
                .Select("Index", "CheckPointEntrega")
                .Insert("Create", "CheckPointEntrega")
                .Update("Edit", "CheckPointEntrega")
                .Delete("Delete", "CheckPointEntrega")
            )
            .Columns(columns =>
            {
                columns.Bound(model => model.Id).ReadOnly().Width(50);
                columns.Bound(model => model.Observacoes).Width(250);
                columns.Command(commands => commands.Edit()).Width(100);
                columns.Command(commands => commands.Delete()).Width(100);
            }
            )
            .Pageable()
            .Sortable().Render();
        
    }